package theFirstWay;

import java.util.Stack;

public class MainClass {

    public static Stack stack = new Stack();
    public static volatile int sysFlag=1;

    public static void main(String[] args){
        ThreadPush threadPush = new ThreadPush();
        ThreadPop threadPop = new ThreadPop();
        Thread t1 = new Thread(threadPush,"Push");
        Thread t2 = new Thread(threadPop,"Pop");
        t1.start();
        t2.start();

    }
}
